import { App } from 'vue';
import { withInstall } from '@ibiz-template/vue3-util';
import { registerGridColumnProvider } from '@ibiz-template/runtime';
import { ColumnSearch } from './column-search';
import { CloumnSearchProvider } from './column-search-provider';

export const IBizColumnSearch = withInstall(ColumnSearch, function (v: App) {
  v.component(ColumnSearch.name, ColumnSearch);
  registerGridColumnProvider(
    'GRID_COLRENDER_CLOUMN_SEARCH',
    () => new CloumnSearchProvider(),
  );
});

export default IBizColumnSearch;
